package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class WechatMpSystemAccount implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 用户ID
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 余额
     *
     * @mbg.generated
     */
    private BigDecimal amount;

    /**
     * 预付金
     *
     * @mbg.generated
     */
    private BigDecimal deposit;

    /**
     * 借伞数量
     *
     * @mbg.generated
     */
    private Integer umbrellanumber;

    /**
     * 状态
     *
     * @mbg.generated
     */
    private String status;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 时长卡类型：0,普通充值;1,年卡;2,半年卡;3,季度卡;4,月卡;5,周卡;6,日卡
     *
     * @mbg.generated
     */
    private Integer cardType;

    /**
     * 首次使用时长卡时间
     *
     * @mbg.generated
     */
    private Date cardFirsttime;

    /**
     * 时长卡开始时间
     *
     * @mbg.generated
     */
    private Date cardBegintime;

    /**
     * 时长卡到期时间
     *
     * @mbg.generated
     */
    private Date cardEndtime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public Integer getUmbrellanumber() {
        return umbrellanumber;
    }

    public void setUmbrellanumber(Integer umbrellanumber) {
        this.umbrellanumber = umbrellanumber;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCardType() {
        return cardType;
    }

    public void setCardType(Integer cardType) {
        this.cardType = cardType;
    }

    public Date getCardFirsttime() {
        return cardFirsttime;
    }

    public void setCardFirsttime(Date cardFirsttime) {
        this.cardFirsttime = cardFirsttime;
    }

    public Date getCardBegintime() {
        return cardBegintime;
    }

    public void setCardBegintime(Date cardBegintime) {
        this.cardBegintime = cardBegintime;
    }

    public Date getCardEndtime() {
        return cardEndtime;
    }

    public void setCardEndtime(Date cardEndtime) {
        this.cardEndtime = cardEndtime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", amount=").append(amount);
        sb.append(", deposit=").append(deposit);
        sb.append(", umbrellanumber=").append(umbrellanumber);
        sb.append(", status=").append(status);
        sb.append(", remark=").append(remark);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", cardType=").append(cardType);
        sb.append(", cardFirsttime=").append(cardFirsttime);
        sb.append(", cardBegintime=").append(cardBegintime);
        sb.append(", cardEndtime=").append(cardEndtime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpSystemAccount other = (WechatMpSystemAccount) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getDeposit() == null ? other.getDeposit() == null : this.getDeposit().equals(other.getDeposit()))
            && (this.getUmbrellanumber() == null ? other.getUmbrellanumber() == null : this.getUmbrellanumber().equals(other.getUmbrellanumber()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCardType() == null ? other.getCardType() == null : this.getCardType().equals(other.getCardType()))
            && (this.getCardFirsttime() == null ? other.getCardFirsttime() == null : this.getCardFirsttime().equals(other.getCardFirsttime()))
            && (this.getCardBegintime() == null ? other.getCardBegintime() == null : this.getCardBegintime().equals(other.getCardBegintime()))
            && (this.getCardEndtime() == null ? other.getCardEndtime() == null : this.getCardEndtime().equals(other.getCardEndtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getDeposit() == null) ? 0 : getDeposit().hashCode());
        result = prime * result + ((getUmbrellanumber() == null) ? 0 : getUmbrellanumber().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCardType() == null) ? 0 : getCardType().hashCode());
        result = prime * result + ((getCardFirsttime() == null) ? 0 : getCardFirsttime().hashCode());
        result = prime * result + ((getCardBegintime() == null) ? 0 : getCardBegintime().hashCode());
        result = prime * result + ((getCardEndtime() == null) ? 0 : getCardEndtime().hashCode());
        return result;
    }
}